<?php

namespace Modules\ShopApi\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class BindingPhoneRequest extends FormRequest
{
    
      
     public function authorize()
    {
        return true;
    }
	public function rules()
    {
        return [
			'phone' => 'required|is_phone',
			'code' => 'required|regex:/^\d{6}$/',
        ]; 
    }  
	public function messages(){   
		return [
			'phone.required' 	=> '请输入手机号！',
			'phone.is_phone' 	=> '手机号格式错误！',
			'code.required' 	 => '请输入验证码！',
			'code.regex' 		 => '验证码格式错误！',
		];
	}
}









